﻿//Orginal date made: 26th March 2012
//Creator: by Luke Bermingham

//Last modified:
//Modifier name:

using System;

namespace SharedResources.Model
{
    public class SpatioTemporalPoint
    {
        //this is the base model for storing the trajectory data
        //this class will hold object id, date, time of recoding, latitude, longitude or x, y

        public SpatioTemporalPoint(int objectId, DateTime dateTimeRecorded, double latitude, double longitude)
        {
            //the spatio-temporal recording of an individual point making up some trajectory for some object
            
            ////////Construct propoerties///////
            _objectId = objectId;
            _dateTimeRecorded = dateTimeRecorded;
            _spatialData = new GeoCoordinate(latitude, longitude);
        }

        //Properties

        private readonly GeoCoordinate _spatialData;
        public GeoCoordinate SpatialData
        {
            get { return _spatialData; }
        }
        
        private readonly int _objectId;
        public int ObjectId
        {
            get { return _objectId; }
        }

        private readonly DateTime _dateTimeRecorded;
        public DateTime DateTimeRecorded
        {
            get { return _dateTimeRecorded; }
        }

    }
}
